/*
Copyright (C) 2010 Martin Zuber, zuber@centrum.cz

This application is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.

This application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with This application; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QGridLayout>
#include <QAction>

#include "feggclockwidget.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

    // layout grid for clock widget
    QGridLayout *grid;

    // array of clocks - normally 3 for portrait mode, 2 for landscape
    FEggClockWidget **m_clocks;
    QAction *m_option;

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

protected:
    /*
     Resize event handler
     @param e resize event info
     */
    void resizeEvent(QResizeEvent *e);

private slots:
    void onOptionTriggered();
};

#endif // MAINWINDOW_H
